package com.kongyz.expression;

/**
 * @author kongyz
 * @date 2018/7/2 21:37
 * @Description: 终端
 */
public class TerminalExpression implements Expression {
    private String data;

    public TerminalExpression(String data) {
        this.data = data;
    }

    public boolean interpret(String context) {
        if(context.contains(data)){
            return true;
        }
        return false;
    }
}
